package com.web.controller;

import com.web.common.Dto.BrandPredictDto;
import com.web.common.responseResult.ResponseResult;
import com.web.common.vo.TotalSaleCounts;
import com.web.service.Task4Service;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * [一句话描述该类的功能]
 *
 * @author : [Lenovo]
 * @version : [v1.0]
 * @createTime : [2024/6/11 上午10:53]
 */
@RestController
@RequestMapping("/task4")
@Slf4j
public class Task4Controller {
    @Autowired
    private Task4Service task4Service;
    @PostMapping("/brandPredict")
    public ResponseResult<TotalSaleCounts> brandPredict(@RequestBody BrandPredictDto brandPredictDto)
    {
        log.info("brandPredictDto:{}",brandPredictDto);
        return task4Service.brandPredict(brandPredictDto);
    }
}
